package com.example.bankend.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.bankend.entity.Trade;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author luolinila
 * @date 2025/6/18 15:54
 */
@Mapper
public interface TradeMapper extends BaseMapper<Trade> {
    public void deleteallByCardID(String cardID);

    public Trade getTradeById(@Param("tradeID") Integer tradeID);
    public void deleteTrade(Integer tradeID);

    List<Trade> selectAllTrade(String PID);

    void restoreAllByCardID(String cardID);

    List<Trade> selectAll();

    void insertTrade(Trade trade);

    List<Trade> selectAllByCardID(String cardID);
}
